﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCDuyet.ascx.cs" Inherits="Admin_UCControls_UCDuyet" %>

<table width="100%">
   
    <tr>
        <td>
            <asp:GridView ID="GridDuyet" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" 
                         OnRowCommand="GridDuyet_RowCommand" 
                         CssClass="mGrid"  
                         PagerStyle-CssClass="pgr"  
                         AlternatingRowStyle-CssClass="alt" PageSize="15"
                         AllowPaging="True" PageIndex="20" OnPageIndexChanging="GridDuyet_PageIndexChanging"
                         EmptyDataText="Chưa có dữ liệu duyệt" EmptyDataRowStyle-ForeColor="Blue" >
              <Columns>
                    <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                         <%# Container.DataItemIndex + 1 %>  
                    </ItemTemplate>
                    </asp:TemplateField>
              
                   <asp:TemplateField HeaderText="Tên khách hàng" ItemStyle-Width="110px">
                    <ItemTemplate>
                        <%# Eval("TenKhachHang") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                     <asp:TemplateField HeaderText="Ngày đăng ký" ItemStyle-Width="110px">
                    <ItemTemplate>
                         <%# Eval("NgayDangKy","{0:d}") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="Mẫu thẻ" ItemStyle-Width="110px">
                    <ItemTemplate>
                        <%# Eval("MauThe") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                     <asp:TemplateField HeaderText="Mệnh giá" ItemStyle-Width="110px">
                    <ItemTemplate>
                         <%# Convert.ToDouble(Eval("MenhGia")).ToString("0,000.##")%>
                    </ItemTemplate>
                     <ItemStyle CssClass="numberRight" />
                    </asp:TemplateField>
                     
                   <asp:TemplateField><ItemTemplate>
                        <asp:LinkButton ID="btnDuyet" runat="server" Text="Duyệt" CommandName="Duyet" CommandArgument='<%#Bind("Id")%>' />
                       
                  </ItemTemplate>
                    </asp:TemplateField>
                    
              </Columns>
              
            </asp:GridView>
        </td>
    </tr>
   
   </table>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">

</asp:UpdatePanel>
